/**
 * 
 */
package com.isaac.actm.domain.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * @author ybak
 * 
 */
public class Category {
    private Long id; // orm
    private String name;
    private String image;
    private String description;
    private String classCode;

    private Category parentCategory;
    private Set<Product> products = new HashSet<Product>();
    private Set<Category> childCategory = new HashSet<Category>();

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getClassCode() {
        return classCode;
    }

    public void setClassCode(String classCode) {
        this.classCode = classCode;
    }

    public Category getParentCategory() {
        return parentCategory;
    }

    public void setParentCategory(Category parentCategory) {
        this.parentCategory = parentCategory;
    }

    public Set<Product> getProducts() {
        return products;
    }

    public void setProducts(Set<Product> products) {
        this.products = products;
    }

    public Set<Category> getChildCategory() {
        return childCategory;
    }

    public void setChildCategory(Set<Category> childCategory) {
        this.childCategory = childCategory;
    }

    @Override
    public String toString() {
        return "Category [id=" + id + ", name=" + name + ", classCode=" + classCode + ", description=" + description
                + "]";
    }
}
